package com.tenghu.sbm.rest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 基本消息响应
 * @author Arvin
 * @date 2017/12/9 14:15
 */
@ApiModel(value = "基本消息响应",description = "处理简单的消息")
public class AbsResponse {

    @ApiModelProperty(value = "消息编码",name = "code",dataType = "String")
    private String status;
    @ApiModelProperty(value = "简单消息",name = "message",dataType = "String")
    private String message;

    public AbsResponse(String status, String message) {
        this.status = status;
        this.message = message;
    }

    public AbsResponse() {
        this.status=DefaultStatusEnum.SUC.getCode();
        this.message=DefaultStatusEnum.SUC.getName();
    }

    public String getStatus() {
        return status;
    }

    public AbsResponse setStatus(String status) {
        this.status = status;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public AbsResponse setMessage(String message) {
        this.message = message;
        return this;
    }
}
